home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc302emb.zip / LIBCF / PRINTF.ASM < prev    next >
Assembly Source File  |  1994-03-18  |  237b  |  11 lines

  1. *
  2. * Formatted print to the console device: printf(format, args ...)
  3. *
  4. printf    MULB    #2        Word entries
  5.     LEAI    ,S        Point to stack
  6.     ADAI            Point to argument
  7.     LD    #putch        Point to output func
  8.     JMP    format        Format it
  9. $EX:format
  10. $EX:putch
  11.